package Leason3;

import java.util.Arrays;
import java.util.Scanner;

public class Task2 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int arrNum;
		
		while(true)
		{
		System.out.println("Please enter a number multiple of 2");
		
		arrNum = sc.nextInt();
			if (arrNum%2==0)
			{
			break;
			}
		}
		
		int[] array = new int [arrNum];
		
		int a = arrNum/2;
		int number;
		int b = a;
		
		for(int i = 0; i < (array.length/2); i++)
		{
			System.out.println("Please enter the " + (i+1) + " number of your array");
			
			number = sc.nextInt();
			array[i] = number;
			
			array[b]= number;
			b++;
			
		}
		
		System.out.println(Arrays.toString(array));
		
		
	}

}
